import service from "../http"

export default {
  get_node_list(data) {
    return service({
      method: "POST",
      url: "/cck/v1/container/operation/node_list",
      data
    })
  },
  get_password(data) {
    return service({
      method: "POST",
      url: "/cck/v1/container/operation/get_password",
      data
    })
  },
  // 获取云服务器websocket请求参数
  get_vm_ticket(data) {
    return service({
      method: "POST",
      url: "/cck/v1/container/operation/vm_ticket",
      data
    })
  },
  // 节点列表 type为master 更新vm_name
  change_vm_name(data) {
    return service({
      method: "POST",
      url: "/cck/v1/container/operation/update_vm_name",
      data
    })
  },
  // 删除节点
  delete_node(data) {
    return service({
      method: "POST",
      url: "/cck/v1/container/operation/del_err_node",
      data
    })
  },
}